package com.jky.stmall.exercise;


import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class sort  {
    public static void main(String[] args) {
        int[]  a={5,7,6,2,11,8,88,19,9};
        for (int i =1;i<a.length;i++){
            if (a[i]<a[i-1]){
                int j = i;
                int t = a[i];
                while (j>0 && t<a[j-1]){
                    a[j]=a[j-1];
                    j--;
                }
                a[j]=t;
            }
        }
        for(int i =0;i<a.length;i++){
        System.out.println(a[i]);}

    }
 /*   public static void fixedTheradPool(){
        ExecutorService t= Executors.newCachedThreadPool();
        ExecutorService t1=Executors.newSingleThreadExecutor();
        ExecutorService t2=Executors.newFixedThreadPool(10);
        t2.execute(new Thread());
        t2.execute(new Thread());

    }*/

}
/*
class  a implements Runnable{
    @Override
    public void run() {
        for (int i =0;i<10;i++){
            System.out.println("main"+i);
        }
    }
}
*/
